import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// axios 配置
import axios from "axios";
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.prototype.$axios = axios;
//轮播
import { Swipe, SwipeItem } from 'vant';
Vue.use(Swipe);
Vue.use(SwipeItem);
// 弹框
import { Dialog } from 'vant';
Vue.use(Dialog);
//密码框
import { PasswordInput, NumberKeyboard } from 'vant';
//徽标
import { Badge } from 'vant';
//搜索
import { Search } from 'vant';
//禁用
import { Button } from 'vant';
//标签页
import { Tab, Tabs } from 'vant';

Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Button);
Vue.use(Search);
Vue.use(Badge);
Vue.use(PasswordInput);
Vue.use(NumberKeyboard);

Vue.config.productionTip = false;

// 轮播图vant模板
// import { Swipe, SwipeItem } from 'vant';
import { Lazyload } from 'vant';

Vue.use(Vant);
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
// 轮播图
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Lazyload);
// 动作面板
import { ActionSheet } from 'vant';
Vue.use(ActionSheet);
// 下拉选项
import { Picker } from 'vant';
Vue.use(Picker);
// 开关
import { Switch } from 'vant';
Vue.use(Switch);
// 空状态
import { Empty } from 'vant';
Vue.use(Empty);


new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
